package com.aaa.zuul.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * fileName:UserService
 * description:
 * author:zz
 * createTime:2020/8/29 17:03
 * version:1.0.0
 */
@FeignClient(name = "ssoService")
public interface UserService {

    /**
     * 使用feign验证token是否正确
     * @param accessToken
     * @return
     */
    @GetMapping("/login/checkToken")
    boolean checkToken(@RequestParam("accessToken") String accessToken);
}
